calendar object

This method will change the current date in the calendar.

bool set(int year, int month, int day, int hour, int minute, int second)

Parameters:
year
The year, between 0 and 9999.
month
The month between 1 and 12.
day
The date, between 1 and 31.
hour
The hour, between 0 and 23.
minute
The minute, between 0 and 59.
second
The second, between 0 and 59.

Return value:
true on success, false on failure.

Remarks:
This method does not change the system time, but rather it changes the date properties of the calendar object itself.

Example:
// Create a calendar and set it to October 7, 1767 at 09:00.

void main()
{
calendar test;
test.set(1767, 10, 7, 9, 0, 0);
alert("Date", "The date is "+test.weekday_name+", "+test.month_name+" "+test.day+", "+test.year+", at "+test.hour+":"+test.minute+":"+test.second);
}